import ReactDOM from 'react-dom';
import React from 'react';
import {browserHistory} from 'react-router';
import {syncHistoryWithStore} from 'react-router-redux';
import routers from './routers';
import {Provider} from 'react-redux';
import configureStore from './redux/configureStore';

const store = configureStore();

const history = syncHistoryWithStore(browserHistory, store);

ReactDOM.render((
	<Provider store={store}>
		<div>
			{routers(history)}
		</div>
	</Provider>
), document.getElementById('root'));
